package lambda_expression;

import test.albin.SecretSupplier;

import java.util.UUID;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        System.out.println( "Hello World!" );


        // Supplier
        SecretSupplier<String> secretSupplier = () -> {
            return UUID.randomUUID().toString();
        };
        System.out.println(secretSupplier.get());
        ILambda l1 = () -> {
            // s
            System.out.println("-------hello lambda-------");
        };
        l1.test();

    }

    interface ILambda{
        void test();
        default void tt(){}
        static void ss(){}
    }
}
